<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    i{
        width: 17px;
        background: #f00;
        min-width: 20px;
        max-width: 32px;
        padding: 1px 3px;
        right: -11px;
        top: -4px;
        text-align: center;
        border-radius: 8px;
    }
</style>
<body>
    <i>5</i>
</body>
</html>